package com.zliblike_platform.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 分页结果封装类
 */
@Data
@NoArgsConstructor
public class PageResult<T> {
    private Integer total;       // 总记录数
    private Integer totalPages; // 总页数
    private Integer currentPage; // 当前页码
    private List<T> records;    // 记录列表

    public PageResult(Integer total, Integer totalPages, Integer currentPage, List<T> records) {
        this.total = total;
        this.totalPages = totalPages;
        this.currentPage = currentPage;
        this.records = records;
    }
} 